<?php foreach ($detail['merchents'] as $k=>$merchant):?>
    <tr>
        <!--                    --><?php //if($k==0):?>
        <td "<?php echo count($detail['merchents'])?>"><?= $detail['name']?></td>
        <!--                    --><?//endif;?>
        <td><?= $merchant['name']?></td>
        <td><?= round($merchant['trade_data'][0]['discount_sum']/100,2)?></td>
        <td><?= round($merchant['trade_data'][0]['amount_due_sum']/100,2)?></td>
        <td><?= $merchant['trade_data'][0]['trade_sum']?></td>
        <td><?= $merchant['createtime']?></td>

    </tr>
<?php endforeach;?>